<template>
	<view class="moreList">
		<view class="ListItem" v-for="(item,index) in moreList" :key="index">
			<text>{{item.title}}</text>
			<text :style="{color:item.isColor}">{{item.content}}</text>
		</view>
		<view class="remark">
			<text>备注</text>
			<textarea placeholder="给卖家留言:(100字以内)" placeholder-class="placeholderStyle" maxlength='100' show-confirm-bar="false"></textarea>
		</view>
	</view>
</template>

<script setup>
	import {ref} from 'vue'
	const moreList = ref([
		{title:'配送方式',content:'商家配送'},
		{title:'卷包',content:'暂无可用的券',isColor:'#c4c4c4'},
		{title:'商品总额',content:'￥32.00'}
	])
</script>

<style lang="scss" scoped>
	.moreList{
		width: 100%;
		background-color: #fff;
		padding: 0 20rpx;
		box-sizing: border-box;
		padding-bottom: 30rpx;
		border-radius: 28rpx;
		.ListItem{
			display: flex;
			justify-content: space-between;
			align-items: center;
			height: 80rpx;
			text{
				font-size: 28rpx;
				font-weight: 400;
				color: rgba(51, 51, 51, 1);
			}
		}
		.remark {
			width: 100%;
			display: flex;
			flex-direction: column;
			text {
				width: 100%;
				height: 80rpx;
				line-height: 80rpx;
				font-size: 28rpx;
				font-weight: 400;
				color: rgba(51, 51, 51, 1);
			}
			textarea {
				margin: 0 auto;
				width: 95%;
				height: 250rpx;
				background: #F1F1F1;
				border-radius: 24rpx 24rpx 24rpx 24rpx;
				padding: 24rpx;
				box-sizing: border-box;
			}
		}
	}
	
</style>
<style scoped>
	/deep/.placeholderStyle {
		font-family: Lantinghei SC, Lantinghei SC;
		font-weight: 400;
		font-size: 28rpx;
		color: #676767;
		text-align: left;
		font-style: normal;
		text-transform: none;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
</style>